/***********************************************************************************
@file  
@author 
@brief  
***********************************************************************************/
#ifndef _MID_ADC_H
#define _MID_ADC_H
/* Private includes ----------------------------------------------------------*/
#include "main.h"
/* Private define ------------------------------------------------------------*/
#define ADC_AVE_MAX 3
/* Private typedef -----------------------------------------------------------*/


/* Private typedef -----------------------------------------------------------*/
typedef struct {
    uint8_t  chge_flag;
    uint32_t bat_vol;
    uint32_t sensor_vol;
    uint32_t opa_vol_res;
    uint32_t ref_vol;
}_adc_obj;
extern _adc_obj adc_obj;
/* Private variables ---------------------------------------------------------*/
/* Private function ----------------------------------------------------------*/
extern void  adc_init(void);
extern void  adc_deinit(void);
extern void  adc_volslide_data(void);
extern float kalman_filter(float data);
#endif

/**************************** (C) COPYRIGHT CX*****END OF FILE**********************/

